package com.cqgc.pojo.dto.UserDTO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

/**
 * @author : 是你
 * @time : 2024/4/19 19:36
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterDTO {
    //    private String account;
//    private String password;
//    private String nickName;
//    @Pattern(regexp = "^\\S{11}$")//11位数字
    @Pattern(regexp = "^1[3-9]\\d{9}$")//11位数字
    private String phone;
    private int rid;
}
